const Client = require('./client');


const main = async ()=> {
    let client = new Client("http://44.240.194.21:40022");
    await client.getClient();

 //   console.log('------------------- getHeight -------------------');
    //let blockHeight = await client.getBlockNumberSync();
    //console.log(blockHeight);

    //await client.getBlock(15956582)

    console.log('--------------- getTx -------------------');
    try{
      let ret = await client.getTx('7349C60F5D3EE6291CD44C4E156A978C2188DDA9D8AC316FCB5D2CD51823C81E');
      console.log('ret: ', ret);

    }catch(e){
      console.log('e: ',e);
    }
   
}
main();